/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.story.novel.domain;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "story_author")
public class Author {

    @Id
    private int _id;
    @Column(name = "name")
    private String _name;
    @Column(name = "profile")
    private String _profile;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date _created_at;

    /**
     * @return the _id
     */
    public int getId() {
        return _id;
    }

    /**
     * @param _id the _id to set
     */
    public void setId(int _id) {
        this._id = _id;
    }

    /**
     * @return the _name
     */
    public String getName() {
        return _name;
    }

    /**
     * @param _name the _name to set
     */
    public void setName(String _name) {
        this._name = _name;
    }

    /**
     * @return the _profile
     */
    public String getProfile() {
        return _profile;
    }

    /**
     * @param _profile the _profile to set
     */
    public void setProfile(String _profile) {
        this._profile = _profile;
    }

    /**
     * @return the _created_at
     */
    public Date getCreated_at() {
        return _created_at;
    }

    /**
     * @param _created_at the _created_at to set
     */
    public void setCreated_at(Date _created_at) {
        this._created_at = _created_at;
    }

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }
}
